import pandas as pd
from pitchSrc.tools.smoothDecorator import SmoothDecorator
from common.config import pitchConfig as Config

from yawSrc.tools.getPlotly import show3dFig
from pitchSrc.tools.loadFile import toCsv,toAttrCsv

@SmoothDecorator.smooth
# @SmoothDecorator.drop_dbscan
# @SmoothDecorator.curveSmooth

def hisSmoothProcess(X):
    print('smoothProcess 进行中................')
    return X

def smoothProcess():
    toCsv(Config.hisGroupProcess, Config.hisSmoothProcess, hisSmoothProcess)
    toAttrCsv(Config.hisSmoothProcess, Config.hisSmoothAttr)
    print('smoothProcess 完毕................')
    # show3dFig(Config.hisSmoothProcess)
if __name__ == '__main__':


    smoothProcess()